// 
const obj = {
    key: "value",
    key1: "value1"
};


const json = {
    "key": "value",
    "key1": "value1"
}

const arr = [
    {
        key: "value",
        key1: "value1"
    },
    {
        "key": "value",
        "key1": "value1"
    },
];


const json1 = {
    key: "value",
    key1: {},
    key2: [{}, {}]
}
// json --> str
console.log(JSON.stringify(arr));
console.log(JSON.stringify(json));
console.log(JSON.stringify(json1));

let str = `{"key":"value","key1":"value1"}`;

// str --> json
console.log(json.key);
console.log(str.key);


console.log(JSON.parse(str));